package com.car.carcontrol;

import android.content.IntentFilter;
import android.support.v4.app.Fragment;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * 作者：yuanyi
 * 时间：2020.3.29 16:00
 * 邮箱：y6692@126.com
 * 备注：
 */
public class Config {

    public static String[] names = new String[]{"灯光", "码表", "净化器", "天窗", "多媒体", "空调"};

    public static HashMap<String, Object> mapAll = new HashMap<>();
    public static HashMap<String, Fragment> mapTab = new HashMap<>();   //导航栏item的map集合（item名字，item对应的Fragment类）
    public static HashMap<String, String> mapSp = new HashMap<>();   //手机内部存储器的map集合（导航栏item名字，存储名）

    static {
        mapAll.put("names", new String[]{});
        mapAll.put("allParam1", "");
        mapAll.put("allParam2", "");
        mapAll.put("allParam3", "");
        mapAll.put("allParam4", "");
        mapAll.put("allParam5", "");
        mapAll.put("allParam6", "");
        mapAll.put("allParam7", "");
        mapAll.put("allParam8", "");

        mapTab.put("灯光", new Fragment_First());
        mapTab.put("码表", new Fragment_Second());
        mapTab.put("净化器", new Fragment_Third());
        mapTab.put("天窗", new Fragment_Fourth());
        mapTab.put("多媒体", new Fragment_Fifth());
        mapTab.put("空调", new Fragment_Sixth());
        mapTab.put("电器", new Fragment_Seventh());
        mapTab.put("信息", new Fragment_Eighth());


        mapSp.put("灯光", "allParam1");
        mapSp.put("码表", "allParam2");
        mapSp.put("净化器", "allParam3");
        mapSp.put("天窗", "allParam4");
        mapSp.put("多媒体", "allParam5");
        mapSp.put("空调", "allParam6");
        mapSp.put("电器", "allParam7");
        mapSp.put("信息", "allParam8");
    }

}

